Skip to main content

mouseDoubleUp

Type

message

Summary

Sent when the mouse button is released at the end of a double-click.

Syntax

mouseDoubleUp <pButtonNumber>

Description

Handle the mouseDoubleUp message to perform an action when the user double-clicks.

The mouseDoubleUp message is sent to the control that was double-clicked, or to the card if no control was under the mouse pointer.

If a tool other than the Browse tool is being used, no mouseDoubleUp message is sent. If an unlocked field is clicked with mouse button 1 or 2, no mouseDoubleUp message is sent.

The doubleClickInterval and doubleClickDelta properties determine what LiveCode accepts as a double click.

note

If the user clicks a transparent pixel in an image, the mouseDoubleUp message is sent to the object behind the image, not to the image.

Parameters

NameTypeDescription

pButtonNumber

enum

Specifies which mouse button was pressed:

Examples

on mouseDoubleUp theMouseButton 
if theMouseButton is 3 then
answer file "Please choose a file to open."
else
pass mouseDoubleUp
end if
end mouseDoubleUp

command: answer file, click

control structure: pass

function: clickLoc, mouse

glossary: Browse tool, card, control, double-click, field, image, message, mouse button, mouse pointer, object, pixel, unlock

message: mouseDoubleDown

property: doubleClickDelta, doubleClickInterval, properties

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

web

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?